<%--
 * list.jsp
 *
 * Copyright (C) 2013 Universidad de Sevilla
 * 
 * The use of this project is hereby constrained to the conditions of the 
 * TDG Licence, a copy of which you may download from 
 * http://www.tdg-seville.info/License.html
 --%>

<%@page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>

<%@taglib prefix="jstl" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@taglib prefix="security"
	uri="http://www.springframework.org/security/tags"%>
<%@taglib prefix="display" uri="http://displaytag.sf.net"%>

<display:table pagesize="5" class="displaytag" keepStatus="true"
	name="registrations" requestURI="${requestURI}" id="row">


	<!-- Attributes -->

	<spring:message code="registration.title" var="titleHeader" />
	<display:column property="event.title" title="${titleHeader}"
		sortable="true" />
		
	<spring:message code="event.start" var="startHeader" />
	<display:column property="event.startMoment" title="${startHeader}" sortable="${sortable}" />
	
	<spring:message code="event.finish" var="finishHeader" />
	<display:column property="event.finishMoment" title="${finishHeader}" sortable="${sortable}" />

	<spring:message code="registration.date" var="dateHeader" />
	<display:column property="date" title="${dateHeader}" sortable="true" />

	<spring:message code="registration.routes" var="routesHeader" />
	<display:column title="${routesHeader}" sortable="false">

		<a href="route/list.do?eventId=${row.event.id}"> <spring:message
				code="event.routes" />
		</a>
	</display:column>
	
	<spring:message code="registration.edit" var="editHeader" />
	<display:column title="${editHeader}" sortable="true">
		<a href="registration/participant/edit.do?registrationId=${row.id}">
			<spring:message code="registration.edit" />
		</a>
	</display:column>

</display:table>

